package cn.edu.scau.cmi.xiaozhenlin.client;

import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.scene.control.Button;

public class AllCtrl {

	@FXML
	private Button btn_test5;

	@FXML
	private Button btn_test6;

	@FXML
	private Button btn_test3;

	@FXML
	private Button btn_test4;

	@FXML
	private Button btn_test1;

	@FXML
	private Button btn_test2;

	@FXML
	private Button btn_test222;

	@FXML
	private Button btn_test11;

	@FXML
	private Button btn_test22;

	@FXML
	private Button btn_test33;

	@FXML
	void showTest1(ActionEvent event) {
		SingletonClient client = new SingletonClient();
		try {
			client.showWindow();
		} catch (Exception e) {
			// TODO 自动生成的 catch 块
			e.printStackTrace();
		}
	}

	@FXML
	void showTest2(ActionEvent event) {
		AbstractFactoryMethodClient client = new AbstractFactoryMethodClient();
		try {
			client.showWindow();
		} catch (Exception e) {
			// TODO 自动生成的 catch 块
			e.printStackTrace();
		}
	}

	@FXML
	void showTest3(ActionEvent event) {
		CompositeClient client = new CompositeClient();

		try {
			client.showWindow();
		} catch (Exception e) {
			// TODO 自动生成的 catch 块
			e.printStackTrace();
		}
	}

	@FXML
	void showTest4(ActionEvent event) {
		AdapterClient client = new AdapterClient();
		try {
			client.showWindow();
		} catch (Exception e) {
			// TODO 自动生成的 catch 块
			e.printStackTrace();
		}
	}

	@FXML
	void showTest11(ActionEvent event) {
		MultipletonClient client = new MultipletonClient();
		try {
			client.showWindow();
		} catch (Exception e) {
			// TODO 自动生成的 catch 块
			e.printStackTrace();
		}
	}

	@FXML
	void showTest5(ActionEvent event) {
		HibernateClient client = new HibernateClient();
		try {
			client.showWindow();
		} catch (Exception e) {
			// TODO 自动生成的 catch 块
			e.printStackTrace();
		}
	}

	@FXML
	void showTest6(ActionEvent event) {
		SpringClient client = new SpringClient();
		try {
			client.showWindow();
		} catch (Exception e) {
			// TODO 自动生成的 catch 块
			e.printStackTrace();
		}
	}

	@FXML
	void showTest222(ActionEvent event) {
		SimpleFactoryMethodClient client = new SimpleFactoryMethodClient();
		try {
			client.showWindow();
		} catch (Exception e) {
			// TODO 自动生成的 catch 块
			e.printStackTrace();
		}
	}

	@FXML
	void showTest22(ActionEvent event) {
		FactoryMethodClient client = new FactoryMethodClient();
		try {
			client.showWindow();
		} catch (Exception e) {
			// TODO 自动生成的 catch 块
			e.printStackTrace();
		}
	}

	@FXML
	void showTest33(ActionEvent event) {
		SafeCompositeClient client = new SafeCompositeClient();
		try {
			client.showWindow();
		} catch (Exception e) {
			// TODO 自动生成的 catch 块
			e.printStackTrace();
		}
	}

}
